﻿#ifndef MYTOOLBUTTON_H
#define MYTOOLBUTTON_H

#include <QWidget>
#include <QToolButton>
#include "mystudio.h"
#include "MyMainRole.h"

#include <QDrag>
#include <QMimeData>
#include <QDragEnterEvent>
#include <QDropEvent>


class MyToolButton : public QToolButton
{
    Q_OBJECT
public:
    explicit MyToolButton(QWidget *parent = nullptr);
    void setRole(roles role);
private:
    roles mRole;
protected:
    void mousePressEvent(QMouseEvent *event) override;
    void dragEnterEvent(QDragEnterEvent *event) override;
    void dropEvent(QDropEvent *event) override;
signals:
    void sendDelete(QPoint mPoint);

public slots:
};

#endif // MYTOOLBUTTON_H
